raar.agent.process
Class RAPair

java.lang.Object
  extended by raar.agent.process.RAPair
All Implemented Interfaces:
java.io.Serializable

public class RAPair
extends java.lang.Object
implements java.io.Serializable

Pairs of Processes between which we can send some info.
Used for connections between various processes in an agent.

See Also:
Serialized Form

Field Summary
 RAProcess in
           
 java.lang.String inName
           
 RAProcess out
           
 java.lang.String outName
           
 
Constructor Summary
RAPair(RAProcess o, java.lang.String outn, RAProcess i, java.lang.String inn)
          Constructor
 
Method Summary
 boolean equals(java.lang.Object o)
          Equals overrides the general method. this method is needed to remove connections
 void send()
          This method will send the register contents from one process to another
 java.lang.String toString()
          To String.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

out

public RAProcess out

outName

public java.lang.String outName

in

public RAProcess in

inName

public java.lang.String inName
Constructor Detail

RAPair

public RAPair(RAProcess o,
              java.lang.String outn,
              RAProcess i,
              java.lang.String inn)
Constructor

Parameters:
The - outputprocess
The - name of the output register
The - inputprocess
The - name of the input register
Method Detail

send

public void send()
          throws RAException
This method will send the register contents from one process to another

Throws:
RAException

equals

public boolean equals(java.lang.Object o)
Equals overrides the general method. this method is needed to remove connections

Overrides:
equals in class java.lang.Object
Parameters:
the - pair to check with

toString

public java.lang.String toString()
To String.

Overrides:
toString in class java.lang.Object